package com.qf.business.redevnlopes.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.data.redenvlopes.entity.RedEnvelopes;
import com.qf.data.redenvlopes.vo.input.RedEvnlopesInput;

import java.util.List;

/**
 * 红包表(RedEnvelopes)表服务接口
 *
 * @author makejava
 * @since 2022-09-27 14:35:27
 */
public interface RedEnvelopesService extends IService<RedEnvelopes> {

    int sendRed(RedEvnlopesInput redEvnlopesInput);

    int robRed(Integer redId);

    int robRed(Integer redId, Integer uid, Integer score);

    int redBack(Integer redId);

    List<RedEnvelopes> queryTimeoutRedEnvelopes();
}

